// // import dark theme
@use 'element-plus/theme-chalk/src/dark/css-vars.scss' as *;

html:root {
  --sy-layout-border-color: #f0f0f0;
  --sy-layout-bg-color: #f2f3f5;
  --sy-menu-inline-bg-color: #fafafa;
  --sy-menu-item-height: 50px;
  --sy-menu-item-hover: #ebebeb;
  --sy-tags-bg-color: #f7f7f7;
  --sy-table-header-bg: #fafafa;
  --sy-border-radius-base: 0.4rem;
}

html.dark {
  --sy-layout-border-color: #313131;
  --sy-layout-bg-color: #020409;
  --sy-menu-inline-bg-color: #1d1d1d;
  --sy-menu-item-hover: #383838;
  --sy-tags-bg-color: #1f1f1f;
  --sy-table-header-bg: #0a0a0a;
  --sy-mask-color: rgba(2, 4, 9, 0.3);
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, Avenir, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

.sy-button {
  line-height: 0 !important;
}
.sy-card {
  border-radius: var(--sy-border-radius-base) !important;
}

.sy-card.is-always-shadow {
  box-shadow: 0 0 12px #0000000d !important;
}

.single-row-search-form {
  .sy-form-item {
    margin-bottom: 0px !important;
  }
}

.sy-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  height: 100%;
  background-color: var(--sy-overlay-color-lighter) !important;
  overflow: auto;
}

.sy-table__row {
  height: 45px;
  font-size: 14px;
  .table-move {
    cursor: grab;
    .el-icon {
      cursor: grab;
    }
  }
}

a {
  color: var(--sy-color-primary);
}

.sy-segmented {
  border-radius: 5px;
}

.dropdown-menu-active {
  background-color: var(--sy-color-primary-light-9);
}

.layout-header {
  .header-icon {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
  }

  .header-hover {
    &:hover {
      background: var(--sy-menu-item-hover);
    }
  }
}

/* nprogress */
#nprogress .bar {
  background: var(--sy-color-primary) !important;
  z-index: 20002;
}
#nprogress .spinner-icon {
  border-top-color: var(--sy-color-primary) !important;
  border-left-color: var(--sy-color-primary) !important;
  z-index: 20002;
}
#nprogress .peg {
  box-shadow:
    0 0 10px var(--sy-color-primary),
    0 0 5px var(--sy-color-primary) !important;
  z-index: 20002;
}
